package com.caigou.bean.cms.entity;

import com.caigou.bean.exam.entity.Users;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Contribute {
    private int id;
    private String userId;//用户id
    private String contributor;//投稿人
    private String tel;//手机号码
    private String email;//电子邮箱
    private String contact;//联系地址
    private String postcode;//邮编
    private String title;//稿件标题
    private int type;//稿件类型
    private int channelId;//频道id
    private String note;//投稿说明
    private String processUserId;//处理人id
    private String processNote;//处理方法备注
    private Date processTime;//处理时间
    private int processStatus;//处理状态，0未处理，1已处理，2不予处理
    private Date createTime;
    private Date updateTime;

    private int publishType;//发布类型
    private String relativeUrl;//相关链接
    private Date prepublishDate;//预发布日期
    private String company;//所属单位名称

    //下面三个对象通过userId进行一对一关联
    private Users user;
//    private UserInfo userInfo;
    private UserBaseInfo userBaseInfo;
    private List<ContributeAttachment> attachmentList;

    private ContributeChannel contributeChannel;
    private ContributeType contributeType;
    private ContributePublishType contributePublishType;
}
